#include <stdio.h>

int main()
{
    FILE* fput = fopen("no1.txt", "w");
    if(fput == NULL)
    {
        perror("error\n");
        return 1;
    }
    
    for(int i=1; i<=500; ++i)
    {
        fprintf(fput, "%d\n", i);
    }

    fclose(fput);
    fput = NULL;

    return 0;
}

